package com.springdoor.wx.api.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

public class SprdGoodsShop implements Serializable {

    private static final long serialVersionUID = 1L;

    private String gshopId;

    /** 部门ID */
    private Long deptId;

    /** 部门名称 */
    private String deptName;

    /** 上架时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date putonTime;

    /** 商品编码 */
    private String gNumber;

    /** 商品名称 */
    private String goodsName;

    /** 关联商品 */
    private String assNumber;

    /** 品牌id */
    private Long brandId;

    /** 品牌 */
    private String brandName;

    /** 类型id */
    private Long typeId;

    /** 类型 */
    private String typeName;

    /** 价格 */
    private Integer price;
    private Integer minPrice;
    private Integer maxPrice;

    /** 分类属性 */
    private String assort;

    /** 图片ID */
    private Long imageId;

    /** 图片地址 */
    private String image;

    /** 显示顺序 */
    private Integer orderNum;
    /** 状态（0未上架 1已上架 2已售空 3已断货） */

    private String status;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    private Integer sort;

    public String getGshopId() {
        return gshopId;
    }

    public void setGshopId(String gshopId) {
        this.gshopId = gshopId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public Date getPutonTime() {
        return putonTime;
    }

    public void setPutonTime(Date putonTime) {
        this.putonTime = putonTime;
    }

    public String getgNumber() {
        return gNumber;
    }

    public void setgNumber(String gNumber) {
        this.gNumber = gNumber;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getAssNumber() {
        return assNumber;
    }

    public void setAssNumber(String assNumber) {
        this.assNumber = assNumber;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Integer minPrice) {
        this.minPrice = minPrice;
    }

    public Integer getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Integer maxPrice) {
        this.maxPrice = maxPrice;
    }

    public String getAssort() {
        return assort;
    }

    public void setAssort(String assort) {
        this.assort = assort;
    }

    public Long getImageId() {
        return imageId;
    }

    public void setImageId(Long imageId) {
        this.imageId = imageId;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("gshopId", getGshopId())
                .append("gNumber", getgNumber())
                .append("goodsName", getGoodsName())
                .append("assNumber", getAssNumber())
                .append("brandId", getBrandId())
                .append("typeId", getTypeId())
                .append("price", getPrice())
                .append("minPrice", getMinPrice())
                .append("maxPrice", getMaxPrice())
                .append("imageId", getImageId())
                .append("image", getImage())
                .append("orderNum", getOrderNum())
                .append("assort", getAssort())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("sort", getSort())
                .toString();
    }
}
